package jp.co.ricoh.melody.models.tables;

/**
 * Created by leonard on 17-3-11.
 */

public interface ITables {
    public static final String S_EQUALS = " = ";
    public static final String S_NOT_EQUALS = " <> ";
    public static final String S_LARGER = " > ";
    public static final String S_SMALLER = " < ";
    public static final String S_ADD = " and ";
    public static final String S_OR= " or ";
    public static final String S_PARAM= " ? ";
    public  enum TableType{
        STRING("String"),
        SHORT("Short"),
        DOUBLE("Double"),
        DATE("Date"),
        LONG("Long"),
        FLOAT("Float"),
        BLOB("Blob");

        private final String type;
        private Object classType;

        TableType(String type) {
            this.type = type;
        }
        public String getTypeMethodName(){
            return "get"+type;
        }

        public Class getClassType() {
            return null;
        }
    }
    String getTableName();
    String getIdName();
    long getId();

    public String[] getColumnNames();

    public TableType[] getColumnTypes();
}
